<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>轮播图-CSS实现</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		div{
			width: 400px;
			height: 200px;
			margin: auto;
			margin-top: 100px;
			border: 1px solid blue;
			position: relative;
			overflow: hidden;
		}
		ul{
			list-style: none;
			width: 1400px;
			height: 200px;
			position: absolute;
			animation: move 10s linear 0s infinite normal;
		}
		@keyframes move{
			from{
				margin-left: 0px; 
			}
			to{
				margin-left: -1000px;
			}
		} 
		ul li{
			/* width: 200px; */
			/* height: 200px; */
			float: left;
		}
		ul li img{
			width: 200px;
			height: 200px;
		}
		ul:hover{
			animation-play-state: paused;
		}

	</style>
</head>
<body>
	<div>
		<ul>
			<li><img src="images/1.jpg" alt=""></li>
			<li><img src="images/2.jpg" alt=""></li>
			<li><img src="images/3.jpg" alt=""></li>
			<li><img src="images/4.jpg" alt=""></li>
			<li><img src="images/5.jpg" alt=""></li>
			<li><img src="images/1.jpg" alt=""></li>
			<li><img src="images/2.jpg" alt=""></li>
		</ul>
	</div>

	
</body>
</html>